package cn.yunhe.main;

/**
 * @author Juni
 * @date 2021/1/15
 */
public class Test {

    public static void main(String[] args) {
        String text = "aaa.hello";
        System.out.println(text.indexOf("."));
        String[] array = text.split("\\.");
        for(int i=0;i<array.length;i++){
            System.out.println(array[i]);
        }

        int num = 0;
        int count = 0;
        for(int i=0;i<100;i++){
            num = ++num;
            System.out.println(num);
        }
        System.out.println("------");
        System.out.println(num);
    }

    public static int sum(int n){
        if(n<2){
            return n;
        }
        return sum(n-1)+sum(n-2);
    }
}
